<template>
    <section class="home-page">
        <div class="gpu-list">
            <div>
                <img  :src="handleImg('console/pro_cloud.png')" alt="">
                <div class="title">高可用云</div>
                <p>高运算量、弹性计算专业场景，安全等级高</p>
                <a-button type="primary" @click="router.push('/highlyAvailableCloud')">去创建</a-button>
            </div>
        </div>

        <div class="gpu-list">
            <div>
                <img :src="handleImg('console/ord_cloud.png')" alt="">
                <div class="title">社区云</div>
                <p>高运算量、弹性计算专业场景，安全等级高</p>
                <a-button type="primary" @click="router.push('/communityCloud')">去创建</a-button>
            </div>
        </div>
    </section>
</template>

<script setup name="Home">
import { useRouter } from 'vue-router'
const router = useRouter()
</script>

<style scoped lang="scss">
.home-page {
    display: flex;
    height: 100%;
    justify-content: space-between;

    .gpu-list {
        flex: 1;
        border-radius: 4px;
        background: #FFF;
        box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.10);
        text-align: center;
        margin-right: 24px;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
            display: block;
            width: 200px;
            height: 200px;
            margin: 0 auto;
            margin-bottom: 8px;
        }

        .title {
            color: #223354;
            font-family: PingFang SC;
            font-size: 18px;
            font-style: normal;
            font-weight: 600;
            line-height: normal;
            margin-bottom: 8px;
        }

        p {
            color: #8A93A7;
            font-family: PingFang SC;
            font-size: 12px;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
            margin-bottom: 8px;
        }
    }

    .gpu-list:last-child{
        margin-right: 0;
    }
}
</style>